package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 学习园地对象 sys_learning_garden
 * 
 * @author ruoyi
 * @date 2022-03-27
 */
public class SysLearningGarden extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 新闻ID */
    private Long learningGardenId;

    /** 区域ID */
    @Excel(name = "区域ID")
    private Long areaId;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 小标题 */
    @Excel(name = "小标题")
    private String subtitle;

    /** 视频url */
    @Excel(name = "视频url")
    private String videoUrl;

    /** 封面url */
    @Excel(name = "封面url")
    private String coverUrl;

    /** 视频类型 */
    @Excel(name = "视频类型")
    private String type;

    /** 发布人ID */
    @Excel(name = "发布人ID")
    private Long author;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publisherDate;

    /** 视频时长 */
    @Excel(name = "视频时长")
    private String duration;

    /** 浏览量 */
    @Excel(name = "浏览量")
    private Long views;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    private Integer sort;

    /** 学习海报id */
    @Excel(name = "学习海报id")
    private Long posterId;

    public void setLearningGardenId(Long learningGardenId) 
    {
        this.learningGardenId = learningGardenId;
    }

    public Long getLearningGardenId() 
    {
        return learningGardenId;
    }
    public void setAreaId(Long areaId) 
    {
        this.areaId = areaId;
    }

    public Long getAreaId() 
    {
        return areaId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setSubtitle(String subtitle) 
    {
        this.subtitle = subtitle;
    }

    public String getSubtitle() 
    {
        return subtitle;
    }
    public void setVideoUrl(String videoUrl) 
    {
        this.videoUrl = videoUrl;
    }

    public String getVideoUrl() 
    {
        return videoUrl;
    }
    public void setCoverUrl(String coverUrl) 
    {
        this.coverUrl = coverUrl;
    }

    public String getCoverUrl() 
    {
        return coverUrl;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setAuthor(Long author) 
    {
        this.author = author;
    }

    public Long getAuthor() 
    {
        return author;
    }
    public void setPublisherDate(Date publisherDate) 
    {
        this.publisherDate = publisherDate;
    }

    public Date getPublisherDate() 
    {
        return publisherDate;
    }
    public void setDuration(String duration)
    {
        this.duration = duration;
    }

    public String getDuration()
    {
        return duration;
    }
    public void setViews(Long views) 
    {
        this.views = views;
    }

    public Long getViews() 
    {
        return views;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public void setPosterId(Long posterId)
    {
        this.posterId = posterId;
    }

    public Long getPosterId()
    {
        return posterId;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("learningGardenId", getLearningGardenId())
            .append("areaId", getAreaId())
            .append("title", getTitle())
            .append("subtitle", getSubtitle())
            .append("videoUrl", getVideoUrl())
            .append("coverUrl", getCoverUrl())
            .append("type", getType())
            .append("author", getAuthor())
            .append("publisherDate", getPublisherDate())
            .append("duration", getDuration())
            .append("views", getViews())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
                .append("sort", getSort())
                .append("posterId", getPosterId())
            .toString();
    }
}
